import request from '@/utils/request'

// 查询个性化组和业务组件关系表列表
export function listPersonalGroupBusinessComponentRela(query) {
  return request({
    url: '/business/personalGroupBusinessComponentRela/list',
    method: 'get',
    params: query
  })
}

// 查询个性化组和业务组件关系表详细
export function getPersonalGroupBusinessComponentRela(id) {
  return request({
    url: '/business/personalGroupBusinessComponentRela/' + id,
    method: 'get'
  })
}

// 新增个性化组和业务组件关系表
export function addPersonalGroupBusinessComponentRela(data) {
  return request({
    url: '/business/personalGroupBusinessComponentRela',
    method: 'post',
    data: data
  })
}

// 修改个性化组和业务组件关系表
export function updatePersonalGroupBusinessComponentRela(data) {
  return request({
    url: '/business/personalGroupBusinessComponentRela',
    method: 'put',
    data: data
  })
}

// 删除个性化组和业务组件关系表
export function delPersonalGroupBusinessComponentRela(id) {
  return request({
    url: '/business/personalGroupBusinessComponentRela/' + id,
    method: 'delete'
  })
}
